﻿@model IEnumerable<GAE_PI.sp_selectEleves_Result>

@{
    ViewBag.Title = "ListesEleve";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Liste des élèves</h2>
<table id="listGrid">
	<thead>
    <tr>
        <th></th>
        <th>
            nom
        </th>
        <th>
            prenom
        </th>
        <th>
            Nombres d'inscription
        </th>
    </tr>
	</thead>
	<tbody>
@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Detail", "ActiviteEleve", "ActiviteEleve", new { username = item.username }, new { @class = "link" }) 
        </td>
        <td>
            @item.nom
        </td>
        <td>
            @item.prenom
        </td>
        <td>
            @item.numberInscription
        </td>
    </tr>
}
</tbody>
</table>
<script type="text/javascript">
	$(document).ready(function () {
		$("#listGrid").wijgrid({ allowSorting: true, allowPaging: true, pageSize: 20});
	});
</script>

